package com.example.jdai.jdai.util;

import android.content.Context;
import android.content.SharedPreferences;

import com.example.jdai.jdai.MyApplication;
import com.example.jdai.jdai.config.Config;

/**
 * Created by hellopyj on 2017/1/13.
 */

public class DataZfb extends BaseData {
    public static String ZFB="zfb";
    public static String ZFB_NAME=ZFB+"_name";
    public static String ZFB_PWD=ZFB+"_pwd";
    public static String ZFB_TOKEN=ZFB+"_token";
    public static String ZFB_STATUS=ZFB+"_status";

    public DataZfb(){
        count=4;
        SharedPreferences sp= MyApplication.applicationContext.getSharedPreferences(Config.SP_NAME, Context.CONTEXT_RESTRICTED);
        data.put(ZFB_NAME,sp.getString(ZFB_NAME,""));
        data.put(ZFB_PWD,sp.getString(ZFB_PWD,""));
        data.put(ZFB_TOKEN,sp.getString(ZFB_TOKEN,""));
        data.put(ZFB_STATUS,sp.getString(ZFB_STATUS,""));
    }
    public boolean saveAll()
    {
        super.saveAll();
        return dataCheck();
    }
}
